#define _CRT_SECURE_NO_WARNINGS
#include"heap.h"

int main()
{
	int a[] = { 100,90,80,110,75,3 };
	Heap p;
	HeapInit(&p);
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HeapPush(&p, a[i]);
	}
	for(int i=0;i<p.size;i++)
	{
		printf("%d ", p.a[i]);
	}
	printf("\n");
	while (!HeapEmpty(&p))
	{
		printf("%d ", HeapTop(&p));
		HeapPop(&p);
	}
	return 0;
}